package com.cq.hd.system.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ContentCategoryUpdateDto implements Serializable {

    @NotNull(message = "id不能为空")
    @ApiModelProperty(value = "id")
    private Long id;

    @NotBlank(message = "分类名称不能为空")
    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @NotNull(message = "内容端口不能为空")
    @ApiModelProperty(value = "内容端口(1-火动学堂，2-商户学堂)")
    private Integer contentPort;

    @NotNull(message = "端口内排序不能为空")
    @ApiModelProperty(value = "端口内排序")
    private Integer categorySort;

}
